package cn.iocoder.yudao.module.xkfz.controller.admin.excel;


import cn.iocoder.yudao.framework.common.pojo.CommonResult;
import cn.iocoder.yudao.module.xkfz.domain.dto.ElementDataMonthXkrcDto;
import cn.iocoder.yudao.module.xkfz.service.clinicalHealthCare.ElementDataMonthXkrcService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.HashMap;
import java.util.List;

import static cn.iocoder.yudao.module.xkfz.controller.admin.excel.result.CommonExcelResult.success;

/**
 * (ElementDataMonthXkrc)表控制层
 *
 * @author wangzx
 * @since 2024-11-08 10:13:52
 */
@RestController
@RequestMapping("elementDataMonthXkrc")
public class ElementDataMonthXkrcController{

    @Autowired
    private ElementDataMonthXkrcService elementDataMonthXkrcService;


    //分页查询所有病区CMI列表
    //CMI=∑科室所有DRG总权重数/全部病例数
    @GetMapping("/listCmi")
    public CommonResult<List<ElementDataMonthXkrcDto>> listCmi(){
        return success(elementDataMonthXkrcService.listCmi());
    }

    //查询四级手术占比
    @GetMapping("/listFourOperation")
    public CommonResult<List<ElementDataMonthXkrcDto>> listFourOperation(){
        return success(elementDataMonthXkrcService.listFourOperation());
    }

    //科技处
    @GetMapping("/kjc")
    public CommonResult<HashMap<String, Object>> listKjc(String deptName){
        return success(elementDataMonthXkrcService.listKjc(deptName));
    }
}

